<%--
  @desc: 应用查看或编辑页面
  @author: chenw
  @create: 2014-4-29 下午 15:32
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
    .pageContent label {
        width: 100px;
    }
    .pageFormContent p {
        width: 430px;
    }
    
   
    .uploadify-queue {
        float: left;
        display: inline-block;
        height: 20px;
        line-height: 20px;
        margin: 0;
        margin-top: 20px;
    }
    .uploadify-queue-item {
        margin: 0;
        height: 20px;
        padding: 0;
        margin-left: 10px;
        width: 400px;
    }
    .uploadify-queue-item .cancel {
        padding-top: 1px;
    }
    .uploadify-queue-item .cancel a {
        float: right;
        height: 16px;
        font-size: 11px;
        margin-left: 5px;
        margin-right: 5px;
        line-height: 16px;
        background-image: none;
        width: 30px;
        text-indent: 5px;
        cursor: pointer;
        text-decoration: none;
    }
    .uploadify-queue-item .fileName, .uploadify-queue-item .data {
        font-size: 11px;
        color: gray;
    }
    .uploadify-queue-item .uploadify-progress {
        margin: 0;
        margin-top: 3px;
    }
    #icon_show {
        display: inline-block;
        line-height: 20px;
        text-indent: 10px;
        color: gray;
        width: 60px;
        height: 60px;
        margin-left: 10px;
        border: 1px solid #ccc;
        border-radius: 3px;
    }
</style>
<!--/sys/app/edit'-->
<div class="pageContent" style="padding-top: 1px;">

    <form method="post" action="<c:url value='/exam/test/edit'/>" class="pageForm required-validate"
            onsubmit="return validateCallback(this, apiEditCallback);">
        <div class="pageFormContent" layoutH="56">
            <p style="width: 100%;">
                <label>考试名称：</label> <input name="name" type="text" size="30" style="width:300px;" class="required" value="${examTest.name}"/>
            </p>
	         <p style="width: 100%;">
                <label>单选数：</label>
            <input name="singlenum" type="text" size="30" style="width:300px;" class="required" value="${examTest.singlenum}"/>
            </p>
			<p style="width: 100%;">
                <label>多选数：</label> <input name="multiplenum" type="text" size="30" style="width:300px;" class="required" value="${examTest.multiplenum}" />
            </p>
			  <p style="width: 100%;">
                  <label>判断数：</label> <input name="judgenum" type="text" size="30" style="width:300px;" class="required" value="${examTest.judgenum}" />
              </p>
            <p style="width: 100%;">
                <label>考试时长：</label> <input name="timelength" type="text" size="30" style="width:300px;" class="required" value="${examTest.timelength}" />
            </p>
            <input type="hidden" name="id" value="${examTest.id}"/>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
<script type="text/javascript">
    function apiEditCallback(resp) {
        if (resp && resp.succ) {
            alertMsg.info("操作成功！");
            $.pdialog.closeCurrent();
            navTab.reloadFlag('page_exam_index')
        } else {
            alertMsg.info(resp.msg + "!");
        }
    }
    </script>
 

